Add a newline to the fscanf format string used to parse /proc/net/dev entries, to...
authorjosht@us.ibm.com <josht@us.ibm.com>
Mon, 22 Aug 2005 23:28:50 +0000 (00:28 +0100)
committerjosht@us.ibm.com <josht@us.ibm.com>
Mon, 22 Aug 2005 23:28:50 +0000 (00:28 +0100)
tools/xenstat/libxenstat/src/xenstat.c

index e37ba9c25a3cee132c72a9321a44df255e63cec0..85ffc0872d744e383169b986fd24b54391fdb579 100644 (file)
@@ -505,7 +505,7 @@ static int xenstat_collect_networks(xenstat_handle * handle,
                unsigned int domid;
                int ret = fscanf(handle->procnetdev,
                                 "vif%u.%u:%llu%llu%llu%llu%*u%*u%*u%*u"
-                                "%llu%llu%llu%llu%*u%*u%*u%*u",
+                                "%llu%llu%llu%llu%*u%*u%*u%*u\n",
                                 &domid, &net.id,
                                 &net.tbytes, &net.tpackets, &net.terrs,
                                 &net.tdrop,